const db = require("../../../db");
const {SYSTEM_ERROR} = require("../../../utils/errorCode");
exports.main = (req, res) => {
    const {orderId} = req.body;
    // 获取订单信息
    const sql = `update orders
                 set isDelete = 1
                 where orderId = ? `
    db.query(sql, orderId, async (err, results) => {
        if (err) {
            console.log(err)
            return res.err(SYSTEM_ERROR)
        }

        return res.sm("删除订单成功");
    })

}


